New Functions in Week 7

sum

{base}

Get sum of numeric values or a vector

max

{base}

Get maximum of a vector

ordered

{dplyr}

Create an ordered factor

length

{base}

Returns number of elements in an object

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

ggplot

{GGPLOT2}

Create a ggplot graph

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

var

{stats}

Calculate variance

which.min

{base}

Return the index of the smallest value in a vector

quantile

{stats}

Obtain empirical quantiles of a vector

labs

{GGPLOT2}

Customise labels in GGPLOT2

min

{base}

Get minimum of a vector

which.max

{base}

return index of the largest value in a vector

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

geom_histogram

{GGPLOT2}

Generates a histogram

boxplot

{graphics}

Plot a simple box plot

rm

{base}

Remove objects

plot

{graphics}

Generic function from base R to produce a plot

print

{base}

Print object to the console

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

hist

{graphics}

Plot a simple histogram

summary

{base}

Obtain summary statistics or detailed regression output

seq

{base}

Create a sequence

sd

{stats}

Get standard deviation of a vector

range

{base}

Return range of values

nrow

{base}

Get number of rows of a data frame

median

{stats}

Get median of a vector

The end!